<?php

namespace Modules\ShopApi\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class ProductListRequest extends FormRequest
{
    
      
    public function authorize()
    {
        return true;
    }
	public function rules()
    {
        return [
			'type' => 'is_positive_integer',
			'page' => 'is_positive_integer',
			
        ]; 
    }  
	public function messages(){   
		return [
			'type.is_positive_integer' 	=> '类型错误！',
			'page.is_positive_integer' 	=> '页码错误！',
		];
	}
}









